<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/jquery-1.7.2.min.js"></script>

<script type="text/javascript" src="js/superslide.2.1.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{%$web_name%}</title>
  <script type="text/javascript">
      function newgdcode(obj,url) {
          obj.src = url+ '&nowtime=' + new Date().getTime();//后面传递一个随机参数，否则在IE7和火狐下，不刷新图片
      }
      function Isyx(yx){
          var reyx= /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
          return(reyx.test(yx));
      }
      function doSubmit() {
          var Rtel=document.getElementById("Rlc_tel");
          var Remail = document.getElementById("Rlc_email");
          var reg =/(^0{0,1}1[3|4|5|6|7|8|9][0-9]{9}$)/;
          if(!reg.test(document.myform.lc_tel.value)){
              Rtel.innerHTML="<span style='font-size: 16px'>亲，请输入正确的电话！</span>";
              Rtel.style.color="red";
              document.myform.lc_tel.focus();
              return false;
          }

          if (!Isyx(document.myform.lc_email.value)) {
              Remail.innerHTML = "<span style='font-size: 16px'>亲，请输入正确的邮箱地址！</span>";
              Remail.style.color = "red";
              document.myform.lc_email.value = "";
              document.myform.lc_email.focus();
              return false;
          }
      }
      </script>
</head>

<body>
<!--头部 开始-->
{%include file='inc_head.htm'%}
<!--头部 结束-->
<div class="main">
	<div class="mainleft">
    	<h2  class="title3">在线留言</h2>
    	<ul class="nav5">
        	<li class="nav5_li"  ><a href="index.php?p=gbook&lanmu=6" >在线留言</a></li>
           
         </ul>
    </div>
    <div class="mainright">
    	<div class="title4"> 
        	<span class="sq7">您现在的位置：在线留言</span>
            <span class="sq8">在线留言</span>
         </div>
         <div class="liuyan">
           <form action="index.php?a=gbook_save" method="post" name="myform" onSubmit="return doSubmit()">
               <input type="hidden" name="lanmu" value="6">
         	<p class="row" style="margin-top:40px;"><span class="title7">姓名：</span><input type="text" name="lc_name" class="f1"><span class="d">*</span></p>
            <p class="row"><span class="title7">电话：</span><input type="text"  name="lc_tel" class="f1"><span class="d" id="Rlc_tel">*</span></p>
            <p class="row"><span class="title7">邮箱：</span><input type="text" name="lc_email" id="lc_email" class="f1" onBlur="check_email(this)"><span class="d" id="Rlc_email">*</span></p>
            <p class="row"><span class="title7">地址：</span><input type="text" name="lc_address" class="f1"><span class="d">*</span></p>
            <p class="row"><span class="title7">主题：</span><input type="text" name="lc_title" class="f1"><span class="d">*</span></p>
            <p class="row" style="height:260px;"><span class="title7" style="height:260px; line-height:260px;">内容：</span><textarea name="lc_content"  class="f2"> </textarea><span class="d" style="height:260px; line-height:260px;">*</span></p>
            <p class="row"><span class="title7">验证码：</span><input type="text" name="yzm" id="yzm" class="f3"><img src="index.php?a=imagecode" alt="看不清楚，换一张" class="e" onClick="newgdcode(this,this.src)"></p>
             <p class="row"><span class="title7"></span><input type="submit" class="f4"  value="提交"><input type="reset" value="重置"  class="f5"></p>
            </form>
         </div>
         
        
    </div>
</div>
<!--底部 开始-->
{%include file='bot.htm'%}
<!--底部 结束-->
</body>
</html>
<script type="text/javascript">
	
	$(".fullSlide").hover(function(){
    $(this).find(".prev,.next").stop(true, true).fadeTo("show", 0.5)
	},
	function(){
		$(this).find(".prev,.next").fadeOut()
	});

$(".juzhong").css("width",$(".page a").length*37);
$(".fullSlide").slide({
    titCell: ".hd ul",
    mainCell: ".bd ul",
    effect: "fold",
    autoPlay: true,
    autoPage: true,
    trigger: "click",
    startFun: function(i) {
        var curLi = jQuery(".fullSlide .bd li").eq(i);
        if ( !! curLi.attr("_src")) {
            curLi.css("background-image", curLi.attr("_src")).removeAttr("_src")
        }
    }
});
$(".nav6").hide();
$(".nav5_li a").click(function(){
	
	if($(this).parent().next(".nav6").is(":hidden")){
		$(this).parent().next(".nav6").slideDown();
		}else{
		$(this).parent().next(".nav6").slideUp();
			}
	})
$(".bg7").hide();
$(".prd4 li").hover(function(){
 	 $(this).children(".bg7").show();
	 $(this).children("a").css("color","#999")
	},
	function(){
	 $(this).children(".bg7").hide();
	 $(this).children("a").css("color","#6d6f20")
	
});
</script>